package utils;

import javax.servlet.http.HttpServletRequest;

/*
 * <p>项目名称: codemanager </p> 
 * <p>文件名称: BrowerUtils.java </p> 
 * <p>描述: [类型描述] </p>
 * <p>创建时间: Nov 13, 2018 </p>
 * @author yys
 * @version v1.0
 * @update
 * @date Nov 13, 2018 3:27:15 PM
 */
public class BrowerUtils {
	private static String[] IEBrowserSignals = { "MSIE", "Trident", "Edge" };

	public static boolean isMSBrowser(HttpServletRequest request) {
		String userAgent = request.getHeader("User-Agent");
		for (String signal : IEBrowserSignals) {
			if (userAgent.contains(signal))
				return true;
		}
		return false;
	}

}
